import {BrowserModule} from '@angular/platform-browser';
import {NgModule} from '@angular/core';
import {RouterModule} from '@angular/router'
import {FormsModule} from '@angular/forms'
import {HashLocationStrategy, LocationStrategy} from '@angular/common'
//动画库
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';


import {appRoutes} from './app.routes';

//ng2-tree树状图
import {TreeModule} from 'ng2-tree';
//ngx-tree
import {TreeviewModule} from 'ngx-treeview';

import {AppComponent} from './app.component';
import {HomeComponent} from './home/home.component';
//动态组件
import {DynamicComponent} from './dynamic/dynamic.component';
import {conent} from './dynamic1/dynamic1.component';
//全选反选
import {AllCheckedComponent} from './all-checked/all-checked.component';
//富文本编辑器
import {TextareaComponent} from './textarea/textarea.component';
import {CKEditorModule} from 'ng2-ckeditor';

import { WeUiModule } from 'ngx-weui';
import { TestComponent } from './test/test.component';
import { NameRouterComponent } from './name-router/name-router.component';
import { NameChildComponent } from './name-child/name-child.component';
import { TouchMoveComponent } from './touch-move/touch-move.component';
import { TouchDirective } from './directive/touch.directive';
//动画研究
import { AnimationComponent } from './animation/animation.component';
//路由传值解析
import { ListComponent } from './list/list.component';
import { ListDetailComponent } from './list-detail/list-detail.component';
import { ListDetailsComponent } from './list-details/list-details.component';
@NgModule({
  declarations: [
    AppComponent,
    HomeComponent,
    DynamicComponent,
    ...conent,
    AllCheckedComponent,
    TextareaComponent,
    TestComponent,
    NameRouterComponent,
    NameChildComponent,
    TouchMoveComponent,
    TouchDirective,
    AnimationComponent,
    ListComponent,
    ListDetailComponent,
    ListDetailsComponent
  ],
  entryComponents: [
    ...conent
  ],
  imports: [
    BrowserModule,
    RouterModule.forRoot(appRoutes),
    TreeviewModule.forRoot(),
    FormsModule,
    TreeModule,
    BrowserAnimationsModule,
    CKEditorModule,
    WeUiModule.forRoot()
  ],
  providers: [{provide: LocationStrategy, useClass: HashLocationStrategy}],
  bootstrap: [AppComponent]
})
export class AppModule {
}
